/**
 * Copyright (C), 2015-2020, bogewang
 * FileName: RpcConsumerService
 * Author:   foren236598164@aliyun.com
 * Date:     2020/5/12 15:43
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.consumer;

import com.bogewang.api.SayHelloRpc;
import org.apache.servicecomb.provider.pojo.RpcReference;
import org.springframework.stereotype.Component;

/**
 * 〈一句话功能简述〉
 * 〈〉
 *
 * @author foren236598164@aliyun.com
 * @create 2020/5/12
 * @since 1.0.0
 */
@Component("hellorpc.consumer")
public class RpcConsumerService implements SayHelloRpc {

    @RpcReference(microserviceName = "start.servicecomb.io:provider-rpc", schemaId = "rpcProvider.hello")
    SayHelloRpc sayHelloRpc;

    @Override
    public String sayHelloRpc(String name) {
        return sayHelloRpc.sayHelloRpc(name);
    }
}
